package File;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class MyFile2 {
    public static void main(String[] args) {
        try(InputStream inputStream = new FileInputStream("D:\\software\\code\\2023_java\\2023_java_code\\code_24_4_17\\src\\Text.text")){
            byte[] bytes = new byte[1024];
            int n = inputStream.read(bytes);
            for (int i = 0; i < n; i++) {
                System.out.println(bytes[i]);
            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
